package com.cskaoyan.bean;

import lombok.Data;

/**
 * @author ShuchaoZhang@edu.com
 * @since 2022/10/09 11:15
 */
@Data
public class BaseRespVo {
    int status;
    String msg;

    public static BaseRespVo ok(){
        BaseRespVo baseRespVo = new BaseRespVo();
        baseRespVo.setMsg("访问成功");
        baseRespVo.setStatus(200);
        return baseRespVo;
    }
    public static BaseRespVo error(){
        BaseRespVo baseRespVo = new BaseRespVo();
        baseRespVo.setMsg("访问失败");
        baseRespVo.setStatus(500);
        return baseRespVo;
    }
}
